<md-dialog aria-label="Form">
<form name='myform' >
<md-dialog-content>
<md-content layout-padding>

<h3>registro {{insumo.id}}</h3>
<div>
<md-input-container flex>
<label>Codigo :</label>
<input ng-model="insumo.codigo" required>
</md-input-container>
<md-input-container flex>
<label>Nombre :</label>
<input ng-model="insumo.nombre" required>
</md-input-container>


<md-input-container flex>
<select ng-model="insumo.unidad_medida"
	ng-options="value.id as value.nombre for value in unidad_medida_list">
	<option>--</option>
</select>{{insumo.unidad_medida.id}}

</md-input-container>





</div>
</md-content>

</md-dialog-content>
<div class="md-actions" layout="row">
<span flex></span>
<md-button type="reset" ng-click="cancel()">
cancelar
</md-button>
<md-button type="submit"  ng-click="save()" ng-disabled="!myform.$valid">
guardar
</md-button>
</div>
</form>
</md-dialog>





